package cn.jinjimi.app.controller.event;

import cn.jinjimi.domain.data.dto.CustomImportDTO;

/**
 * 导入联系人的进度状态
 * Created by Jinsen on 2015/8/20.
 */
public class UploadContactStateEvent extends DataEvent {

    public STATE uploadState;

    public CustomImportDTO data;

    public enum STATE {
        LOAD_START,//读取通讯录
        LOAD_FAIL,
        LOAD_END,
        NOTHING_UPLOAD,//没有可以导入的联系人
        UPLOAD_START,
        UPLOAD_FAIL,
        UPLOAD_SUCC
    }

    public UploadContactStateEvent() {
    }

    public UploadContactStateEvent(STATE state) {
        uploadState = state;
    }

    public UploadContactStateEvent(STATE state, CustomImportDTO customImportDTO) {
        uploadState = state;
        this.data = customImportDTO;
    }

}